Ben Hutchings [Fri, 19 Nov 2010 02:12:48 +0000 (02:12 +0000)]
[PATCH 1/3] rds: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
Recent review has revealed several bugs in obscure protocol
implementations that can be exploited by local users for denial of
service or privilege escalation. We can mitigate the effect of any
remaining vulnerabilities in such protocols by preventing unprivileged
users from loading the modules, so that they are only exploitable on
systems where the administrator has chosen to load the protocol.
The 'rds' protocol is one such protocol that has been found to be
vulnerable, and which was not present in the 'lenny' kernel.
Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name rds-Disable-auto-loading-as-mitigation-against-local.patch
Ben Hutchings [Fri, 19 Nov 2010 02:12:48 +0000 (02:12 +0000)]
[PATCH 2/3] af_802154: Disable auto-loading as mitigation against local exploits
Forwarded: not-needed
Recent review has revealed several bugs in obscure protocol
implementations that can be exploited by local users for denial of
service or privilege escalation. We can mitigate the effect of any
remaining vulnerabilities in such protocols by preventing unprivileged
users from loading the modules, so that they are only exploitable on
systems where the administrator has chosen to load the protocol.
The 'af_802154' (IEEE 802.15.4) protocol is not widely used, was
not present in the 'lenny' kernel, and seems to receive only sporadic
maintenance. Therefore disable auto-loading.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic debian
Gbp-Pq: Name af_802154-Disable-auto-loading-as-mitigation-against.patch
radeon requires firmware/microcode for the GPU in all chips, but for
newer chips (apparently R600 'Evergreen' onward) it also expects
firmware for the memory controller and other sub-blocks.
radeon attempts to gracefully fall back and disable some features if
the firmware is not available, but becomes unstable - the framebuffer
and/or system memory may be corrupted, or the display may stay black.
Therefore, perform a basic check for the existence of
/lib/firmware/radeon when a device is probed, and abort if it
is missing, except for the pre-R600 case.
Update 2023-11-08:
In bug 1053764 Mario Limonciello <mario.limonciello@amd.com> states
that the patch isn't needed anymore for amdgpu, so remove that part
of the patch
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name radeon-amdgpu-firmware-is-required-for-drm-and-kms-on-r600-onward.patch
Ben Hutchings [Thu, 30 May 2024 12:14:32 +0000 (13:14 +0100)]
firmware_loader: Log direct loading failures as info for d-i
Forwarded: not-needed
On an installed Debian system, firmware packages will normally be
installed automatically based on a mapping of device IDs to firmware.
Within the Debian installer this has not yet happened and we need a
way to detect missing firmware.
Although many/most drivers log firmware loading failures, they do so
using many different formats. This adds a single log message to the
firmware loader, which the installer's hw-detect package will look
for. The log level is set to "info" because some failures are
expected and we do not want to confuse users with bogus error messages
(like in bug #966218).
NOTE: The log message format must not be changed without coordinating
this with the check-missing-firmware.sh in hw-detect.
Gbp-Pq: Topic debian
Gbp-Pq: Name firmware_loader-log-direct-loading-failures-as-info-for-d-i.patch
The iwlwifi driver currently supports firmware API versions 4-6 for
these devices. It will request the file for the latest supported
version and then fall back to earlier versions. However, the latest
version that has actually been released is 4, so we expect the
requests for versions 6 and then 5 to fail.
The installer appears to report any failed request, and it is probably
not easy to detect that this particular failure is harmless. So stop
requesting the unreleased firmware.
Gbp-Pq: Topic debian
Gbp-Pq: Name iwlwifi-do-not-request-unreleased-firmware.patch
Ben Hutchings [Mon, 24 Aug 2009 22:19:58 +0000 (23:19 +0100)]
af9005: Use request_firmware() to load register init script
Forwarded: no
Read the register init script from the Windows driver. This is sick
but should avoid the potential copyright infringement in distributing
a version of the script which is directly derived from the driver.
Gbp-Pq: Topic features/all
Gbp-Pq: Name drivers-media-dvb-usb-af9005-request_firmware.patch
Ben Hutchings [Sat, 13 May 2023 11:03:26 +0000 (13:03 +0200)]
fixdep: Allow overriding HOSTCC and HOSTLD
Forwarded: not-needed
objtool always uses HOSTCC, HOSTLD, and HOSTAR, so we need to override
these on the command line for cross-builds of linux-kbuild. But it
also builds fixdep which still needs to be native in a cross-build.
Add support for REALHOSTCC and REALHOSTLD variables which, if set,
override HOSTCC and HOSTLD for fixdep only.
Gbp-Pq: Topic debian
Gbp-Pq: Name fixdep-allow-overriding-hostcc-and-hostld.patch
The top-level Makefile warns if the compiler version string changes at
all between the kernel build and an out-of-tree module build.
We expect that major compiler version changes could introduce ABI
changes, and override the CC variable in out-of-tree module builds to
ensure that the same major compiler version is used. But minor
version changes should not make a difference, so this exact version
comparison produces false warnings.
Since custom kernel packages don't have that, don't remove the version
comparison. Instead, skip it if $(DEBIAN_KERNEL_NO_CC_VERSION_CHECK)
is non-empty.
Gbp-Pq: Topic debian
Gbp-Pq: Name makefile-make-compiler-version-comparison-optional.patch
DKMS and module-assistant both build OOT modules as root. If they
build an old OOT module that still use SUBDIRS this causes Kbuild
to try building a full kernel, which obviously fails but not before
deleting files from the installed headers package.
To avoid such mishaps, detect this situation and abort the build.
The error message is based on that used in commit 0126be38d988
"kbuild: announce removal of SUBDIRS if used".
Gbp-Pq: Topic debian
Gbp-Pq: Name kbuild-abort-build-if-subdirs-used.patch
The module.lds linker script is now built under the scripts directory,
where previously it was under arch/$(SRCARCH).
However, we package the scripts directory as linux-kbuild, which is
meant to be able to do support native and cross-builds. That means it
shouldn't contain files for a specific target architecture without a
wrapper to select between them, and it doesn't appear that linker
scripts are powerful enough to implement such a wrapper.
Building module.lds in a different location would require relatively
large changes. Moving it in the package build rules can work, but we
need to support custom kernel builds from the same source so we can't
assume it's moved.
Therefore, we move module.lds under the arch build directory in
rules.real and change Makefile.modfinal to look for it in both places.
Gbp-Pq: Topic debian
Gbp-Pq: Name kbuild-look-for-module.lds-under-arch-directory-too.patch
Ben Hutchings [Fri, 22 Jun 2018 16:27:00 +0000 (17:27 +0100)]
android: Enable building ashmem and binder as modules
Bug-Debian: https://bugs.debian.org/901492
We want to enable use of the Android ashmem and binder drivers to
support Anbox, but they should not be built-in as that would waste
resources and increase security attack surface on systems that don't
need them.
- Add a MODULE_LICENSE declaration to ashmem
- Change the Makefiles to build each driver as an object with the
"_linux" suffix (which is what Anbox expects)
- Change config symbol types to tristate
Update:
In upstream commit 721412ed3d titled "staging: remove ashmem" the ashmem
driver was removed entirely. Secondary commit message:
"The mainline replacement for ashmem is memfd, so remove the legacy
code from drivers/staging/"
Consequently, the ashmem part of this patch has been removed.
Gbp-Pq: Topic debian
Gbp-Pq: Name android-enable-building-ashmem-and-binder-as-modules.patch
Ben Hutchings [Mon, 5 Aug 2024 01:26:48 +0000 (03:26 +0200)]
Export symbols needed by binder
Bug-Debian: https://bugs.debian.org/901492
We want to enable use of the Android binder driver to support
Waydroid, but it should not be built-in as that would waste resources
and increase security attack surface on systems that don't need it.
Export the currently un-exported symbols it depends on.
Gbp-Pq: Topic debian
Gbp-Pq: Name export-symbols-needed-by-android-drivers.patch
YunQiang Su [Mon, 16 Nov 2020 01:11:00 +0000 (09:11 +0800)]
Use RELAXED ieee754 mode for Loongson-3 as 3A 4000 is 2008-only
Forwarded: not-needed
There are 2 mode of value of IEEE NaN hardcoded by CPU.
Currently, our mipsel/mips64el port is in so-called lagacy mode.
Loongson 3A 4000 is set as the so-called 2008 mode.
To make Debian workable on Loongson 3A 4000, we need set the kerenl in
RELAXED mode.
Ben Hutchings [Tue, 12 May 2015 18:29:22 +0000 (19:29 +0100)]
Make mkcompile_h accept an alternate timestamp string
Forwarded: not-needed
We want to include the Debian version in the utsname::version string
instead of a full timestamp string. However, we still need to provide
a standard timestamp string for gen_initramfs_list.sh to make the
kernel image reproducible.
Make mkcompile_h use $KBUILD_BUILD_VERSION_TIMESTAMP in preference to
$KBUILD_BUILD_TIMESTAMP.
Gbp-Pq: Topic debian
Gbp-Pq: Name uname-version-timestamp.patch
Ben Hutchings [Sat, 2 Jun 2012 18:53:38 +0000 (19:53 +0100)]
video: Remove nvidiafb and rivafb
Bug-Debian: https://bugs.debian.org/383481
Forwarded: no
These drivers contain register programming code provided by the
hardware vendor that appears to have been deliberately obfuscated.
This is arguably not the preferred form for modification.
These drivers are also largely redundant with nouveau. The RIVA 128
(NV3) is not supported by nouveau but is about 15 years old and
probably discontinued 10 years ago.
Gbp-Pq: Topic debian/dfsg
Gbp-Pq: Name video-remove-nvidiafb-and-rivafb.patch
* New upstream stable update:
https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.17
- [arm64] mte: Do not allow PROT_MTE on MAP_HUGETLB user mappings
- drm/xe/oa: Separate batch submission from waiting for completion
- drm/xe/oa/uapi: Define and parse OA sync properties
- drm/xe/oa: Add input fence dependencies
- xe/oa: Fix query mode of operation for OAR/OAC
- btrfs: do not assume the full page range is not dirty in
extent_writepage_io()
- btrfs: move the delalloc range bitmap search into extent_io.c
- btrfs: mark all dirty sectors as locked inside writepage_delalloc()
- btrfs: remove unused btrfs_folio_start_writer_lock()
- btrfs: unify to use writer locks for subpage locking
- btrfs: rename btrfs_folio_(set|start|end)_writer_lock()
- btrfs: use btrfs_inode in extent_writepage()
- btrfs: fix double accounting race when btrfs_run_delalloc_range() failed
- btrfs: fix double accounting race when extent_writepage_io() failed
- [amd64] KVM: x86: Get vcpu->arch.apic_base directly and drop
kvm_get_apic_base()
- [amd64] KVM: x86: Inline kvm_get_apic_mode() in lapic.h
- [amd64] KVM: nVMX: Defer SVI update to vmcs01 on EOI when L2 is active w/o
VID
- drm/amd/display: Refactoring if and endif statements to enable DC_LOGGER
- drm/amd/display: update dcn351 used clock offset
- drm/amd/display: Correct register address in dcn35
- Bluetooth: qca: Update firmware-name to support board specific nvm
- Bluetooth: qca: Fix poor RF performance for WCN6855
- Input: serio - define serio_pause_rx guard to pause and resume serio ports
- Input: synaptics - fix crash when enabling pass-through port
(CVE-2025-21746)
- PCI: Make pcim_request_all_regions() a public function
- PCI: Export pci_intx_unmanaged() and pcim_intx()
- PCI: Remove devres from pci_intx()
- PCI: Restore original INTX_DISABLE bit by pcim_intx()
- [arm64] dts: mediatek: mt8183-pumpkin: add HDMI support
- [arm64] dts: mediatek: mt8183: Disable DSI display output by default
- [amd64] accel/ivpu: Limit FW version string length
- [amd64] accel/ivpu: Add coredump support
- [amd64] accel/ivpu: Add FW state dump on TDR
- [amd64] accel/ivpu: Fix error handling in recovery/reset
- drm/amdkfd: Move gfx12 trap handler to separate file
- drm/amdkfd: Ensure consistent barrier state saved in gfx12 trap handler
- tracing: Switch trace.c code over to use guard()
- tracing: Have the error of __tracing_resize_ring_buffer() passed to user
- USB: gadget: f_midi: f_midi_complete to call queue_work
- sched_ext: Factor out move_task_between_dsqs() from
scx_dispatch_from_dsq()
- sched_ext: Fix migration disabled handling in targeted dispatches
- [arm64] ASoC: rockchip: i2s-tdm: fix shift config for
SND_SOC_DAIFMT_DSP_[AB]
- [amd64] ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers
- [powerpc*] code-patching: Disable KASAN report during patching via
temporary mm
- [powerpc*] 64s: Rewrite __real_pte() and __rpte_to_hidx() as static inline
- ALSA: hda/realtek: Fixup ALC225 depop procedure
- [powerpc*] code-patching: Fix KASAN hit by not flagging text patching area
as VM_ALLOC
- [arm64] ASoC: imx-audmix: remove cpu_mclk which is from cpu dai device
- vsock/virtio: fix variables initialization during resuming
- geneve: Fix use-after-free in geneve_find_dev().
- ALSA: hda/cirrus: Correct the full scale volume set logic
- net/sched: cls_api: fix error handling causing NULL dereference
- ALSA: seq: Drop UMP events when no UMP-conversion is set
- [s390x] ism: add release function for struct device
- ibmvnic: Add stat for tx direct vs tx batched
- ibmvnic: Don't reference skb after sending to VIOS
- sockmap, vsock: For connectible sockets allow only connected
- vsock/bpf: Warn on socket without transport
- tcp: adjust rcvq_space after updating scaling ratio
- net: pse-pd: Avoid setting max_uA in regulator constraints
- net: pse-pd: Use power limit at driver side instead of current limit
- net: pse-pd: pd692x0: Fix power limit retrieval
- gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl().
- geneve: Suppress list corruption splat in geneve_destroy_tunnels().
- flow_dissector: Fix handling of mixed port and port-range keys
- flow_dissector: Fix port range key handling in BPF conversion
- net: Add non-RCU dev_getbyhwaddr() helper
- arp: switch to dev_getbyhwaddr() in arp_req_set_public()
- net: axienet: Set mac_managed_pm
- tcp: drop secpath at the same time as we currently drop dst
- net: allow small head cache usage with large MAX_SKB_FRAGS values
- bpf, test_run: Fix use-after-free issue in eth_skb_pkt_type()
- bpf: unify VM_WRITE vs VM_MAYWRITE use in BPF map mmaping logic
- bpf: avoid holding freeze_mutex during mmap operation
- strparser: Add read_sock callback
- bpf: Fix wrong copied_seq calculation
- bpf: Disable non stream socket for strparser
- bpf: Fix deadlock when freeing cgroup storage
- [arm64] dts: rockchip: Fix lcdpwr_en pin for Cool Pi GenBook
- power: supply: da9150-fg: fix potential overflow
- power: supply: axp20x_battery: Fix fault handling for AXP717
- net: Add rx_skb of kfree_skb to raw_tp_null_args[].
- bpf: Fix softlockup in arena_map_free on 64k page kernel
- [arm64] dts: rockchip: adjust SMMU interrupt type on rk3588
- [arm64] firmware: arm_scmi: imx: Correct tx size of scmi_imx_misc_ctrl_set
- md/raid*: Fix the set_queue_limits implementations
- nouveau/svm: fix missing folio unlock + put after
make_device_exclusive_range()
- [arm64] drm/msm: Avoid rounding up to one jiffy
- [arm64] drm/msm/dpu: skip watchdog timer programming through TOP on >=
SM8450
- [arm64] drm/msm/dpu: enable DPU_WB_INPUT_CTRL for DPU 5.x
- [arm64] drm/msm/dpu: Don't leak bits_per_component into random DSC_ENC
fields
- [arm64] drm/msm/dsi/phy: Protect PHY_CMN_CLK_CFG0 updated from driver side
- [arm64] drm/msm/dsi/phy: Protect PHY_CMN_CLK_CFG1 against clock driver
- [arm64] drm/msm/dsi/phy: Do not overwite PHY_CMN_CLK_CFG1 when choosing
bitclk source
- nvme: tcp: Fix compilation warning with W=1
- nvme-tcp: fix connect failure on receiving partial ICResp PDU
- nvme/ioctl: add missing space in err message
- bpf: skip non exist keys in generic_map_lookup_batch
- drm/nouveau/pmu: Fix gp10b firmware guard
- irqchip/jcore-aic, clocksource/drivers/jcore: Fix jcore-pit interrupt
request
- drm: panel: jd9365da-h3: fix reset signal polarity
- [arm64] drm/msm/dpu: Disable dither in phys encoder cleanup
- [amd64] drm/i915: Make sure all planes in use by the joiner have their
crtc included
- [amd64] drm/i915/dp: Fix error handling during 128b/132b link training
- [amd64] drm/i915/ddi: Fix HDMI port width programming in DDI_BUF_CTL
- [amd64] drm/i915/gt: Use spin_lock_irqsave() in interruptible context
- io_uring/rw: forbid multishot async reads
- io_uring: prevent opcode speculation
- gpiolib: protect gpio_chip with SRCU in array_info paths in multi get/set
- [arm64] tee: optee: Fix supplicant wait loop
- drop_monitor: fix incorrect initialization order
- mm/migrate_device: don't add folio to be freed to LRU in
migrate_device_finalize()
- [arm64] dts: rockchip: Fix broken tsadc pinctrl names for rk3588
- [arm64] dts: rockchip: Move uart5 pin configuration to px30 ringneck SoM
- [arm64] dts: rockchip: Disable DMA for uart5 on px30-ringneck
- [s390x] boot: Fix ESSA detection
- xfs: fix online repair probing when CONFIG_XFS_ONLINE_REPAIR=n
- lib/iov_iter: fix import_iovec_ubuf iovec management
- smb: client: fix chmod(2) regression with ATTR_READONLY
- nfp: bpf: Add check for nfp_app_ctrl_msg_alloc()
- gve: set xdp redirect target only when it is available
- ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data()
- [arm64] ASoC: fsl_micfil: Enable default case in micfil_set_quality()
- ALSA: hda: Add error check for snd_ctl_rename_id() in
snd_hda_create_dig_out_ctls()
- ALSA: hda/conexant: Add quirk for HP ProBook 450 G4 mute LED
- ASoC: SOF: pcm: Clear the susbstream pointer to NULL on close
- acct: perform last write from workqueue
- acct: block access to kernel internal filesystems
- mm,madvise,hugetlb: check for 0-length range after end address adjustment
- mtd: spi-nor: sst: Fix SST write failure
- [x86] perf/x86/intel: Fix event constraints for LNC
- irqchip/gic-v3: Fix rk3399 workaround when secure interrupts are enabled
- smb: client: Add check for next_buffer in receive_encrypted_standard()
- EDAC/qcom: Correct interrupt enable register configuration
- ftrace: Correct preemption accounting for function tracing.
- ftrace: Fix accounting of adding subops to a manager ops
- ftrace: Do not add duplicate entries in subops manager ops
- tracing: Fix using ret variable in tracing_set_tracer()
- net: pse-pd: Fix deadlock in current limit functions
- sched_ext: Fix incorrect assumption about migration disabled tasks in
task_can_run_on_remote_rq()
- [arm64] dts: rockchip: change eth phy mode to rgmii-id for orangepi r1
plus lts
- drm/amdgpu/gfx9: manually control gfxoff for CS on RV
- drm/amdgpu: bump version for RV/PCO compute fix
[ Salvatore Bonaccorso ]
* kbuild: Add Depends on pahole (Closes: #1098706)
* [arm64] phy: rockchip: naneng-combphy: compatible reset with old DT
(Closes: #1095745, #1098250, #1098354)
* [amd64,arm64] drivers/net/ethernet/intel/idpf: Enable IDPF as module
(Closes: #1099143, #1099144, #1099145, #1099146)
* [amd64,arm64] drivers/iommu: Enable VIRTIO_IOMMU as module
(Closes: #1099158)